<table>
    <thead>
        <tr>
            <th><g:message code="bom.product.label" default="Master Product" /></th>
            <g:sortableColumn property="dateCreated" title="${message(code: 'bom.dateCreated.label', default: 'Date Created')}" />
            <g:sortableColumn property="lastUpdated" title="${message(code: 'bom.lastUpdated.label', default: 'Last Updated')}" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${bomInstanceList}" status="i" var="bomInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${bomInstance.id}">${fieldValue(bean: bomInstance, field: "product")}</g:link></td>
            <td><g:formatDate date="${bomInstance.dateCreated}" /></td>
            <td><g:formatDate date="${bomInstance.lastUpdated}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>
